-- GENERATED SPELL FOR [Grishnath Basilisk] --


function spell0_20924(pUnit, Event) --@Soften,Self--
pUnit:FullCastSpellOnTarget(37590,pUnit)
pUnit:RegisterEvent('Sorts_20924', 581, 1)
end

function spell1_20924(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20924', 598, 1)
end

function Sorts_20924(pUnit, Event)
local choix_sorts_20924 = math.random(0, 1)
if choix_sorts_20924 == 0 then
pUnit:RegisterEvent('spell0_20924', 1, 1)
end
if choix_sorts_20924 == 1 then
pUnit:RegisterEvent('spell1_20924', 1, 1)
end
end

function mob20924_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20924', math.random(1500, 3000), 1)
end

function mob20924_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20924_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20924_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20924, 1, 'mob20924_Action')
RegisterUnitEvent(20924, 2, 'mob20924_Leave')
RegisterUnitEvent(20924, 3, 'mob20924_Kill')
RegisterUnitEvent(20924, 4, 'mob20924_Die')
